// This file was decompiled using VCSCM.ini published on 2021-01-30
{$CLEO .cs}

03A4: script_name 'rafaeli' 
0000: NOP 
0001: wait 2050 ms 
0004: $9104 = 0 // $ = int 
0004: $9106 = 0 // $ = int

//0055: put_player $player_char at 96.46 -1136.76 10.47
:RAFAELI_17
0001: wait 50 ms 
00D6: if 
0038:   $onmission == 0 // $ == int 
004D: jump_if_false @RAFAELI_17 
0001: wait 50 ms 
00D6: if 
0102:   actor $player_actor stopped_near_point_on_foot 96.46 -1136.76 10.47 radius 1.0 1.0 1.0 sphere 0 
004D: jump_if_false @RAFAELI_17 
016A: fade 0 500 ms 
03AD: set_rubbish 0 
0247: request_model #LI_MAN1 
038B: load_requested_models 
009A: 0@ = create_actor_pedtype 1 model #LI_MAN1 at 95.27 -1162.13 10.55 
0001: wait 600 ms 
01B6: set_weather 0 
0055: put_player $player_char at 112.6595 -1156.23 11.27 
0171: set_player $player_char z_angle_to 95.0 
0173: set_actor 0@ z_angle_to 267.0 
0006: 1@ = 0 // @ = int  

0004: $9104 = 0 // $ = int 
0004: $9106 = 0 // $ = int 
0001: wait 50 ms 
00D6: if 
05F1: 2@ = random_object_near_point 102.112 -1169.15 9.84188 in_radius 2.0 find_next 0 //IF and SET 
then  
0004: $9104 = 4 // $ = int
end 
        
0001: wait 50 ms 
00D6: if 
05F1: 2@ = random_object_near_point 94.9117 -1175.75 9.84188 in_radius 2.0 find_next 0 //IF and SET 
then  
0004: $9104 = 4 // $ = int
0004: $9106 = 4 // $ = int
end 



00D6: if 
8038:  not $passed_LAW1_The_Party == 1 // $ == int 
then
0004: $9104 = 4 // $ = int
0004: $9106 = 4 // $ = int
end
//0004: $9104 = 4 // $ = int

0006: 3@ = 0 // @ = int
00D6: if or        
0038:   $9104 == 0 // $ == int  
0038:   $9106 == 0 // $ == int 
then 
    0006: 3@ = 2 // @ = int
    03BC: 7@ = create_sphere 97.2907 -1161.7482 9.9 0.75
end
 

0001: wait 700 ms 
016A: fade 1 500 ms 

:RAFAELI_200






0001: wait 0 ms 

00D6: if or              
0038:   $9104 == 3 // $ == int 
0038:   $9106 == 3 // $ == int
then 
    0004: $9104 = 4 // $ = int
    0004: $9106 = 4 // $ = int
    03BD: destroy_sphere 7@ 
    0006: 3@ = 1 // @ = int
end



00D6: if or      
0038:   $9104 == 0 // $ == int  
0038:   $9106 == 0 // $ == int 
then
    00D6: if and                    
    0038:   $onmission == 0 // $ == int 
    0102:   actor $player_actor stopped_near_point_on_foot 97.2907 -1161.7482 9.9 radius 0.75 0.75 0.75 sphere 0 
    then
        0004: $onmission = 1
        03BD: destroy_sphere 7@
        0006: 3@ = 1 // @ = int
        01B4: set_player $PLAYER_CHAR can_move 0
        016A: fade 0 500 ms
        0001: wait 600 ms
        02A3: enable_widescreen 1
        0055: put_player $player_char at 97.2907 -1161.7482 9.9
        0001: wait 600 ms
        0171: set_player $PLAYER_CHAR z_angle_to 92.0
    
        
        015F: set_camera_position 99.6235 -1166.899 12.0 rotation 0.0 0.0 0.0  
        0001: wait 150 ms
        0157: camera_on_player $PLAYER_CHAR mode 15 switchstyle 2
        
        016A: fade 1 500 ms 
        0001: wait 600 ms
        
        00D6: if
        0038:   $9104 == 0 // $ == int
        then
           
           
            03CF: load_wav 'mob_61a' as 1
            :TELKA_8061
            0001: wait 0 ms 
            00D6: if
            03D0:   wav 1 loaded 
            004D: jump_if_false @TELKA_8061     
            03D1: play_wav 1 
            
            0372: set_actor 0@ anim 19 wait_state_time 60000000 ms
            00BC: text_highpriority 'sidpr47' time 6300 1 // rafael      
            0001: wait 6200 ms  
                             
            0372: set_actor 0@ anim 0 wait_state_time 100 ms
            00BC: text_highpriority 'sidpr48' time 3900 1  
            0001: wait 3800 ms    
            
            0372: set_actor 0@ anim 19 wait_state_time 60000000 ms
            00BC: text_highpriority 'sidpr49' time 4400 1 // rafael  
            0001: wait 4300 ms  
            
            0372: set_actor 0@ anim 0 wait_state_time 100 ms                     
            00BC: text_highpriority 'sidpr50' time 4100 1  
            0001: wait 3800 ms      
            
            0372: set_actor 0@ anim 19 wait_state_time 60000000 ms 
            00BC: text_highpriority 'sidpr51' time 11500 1 // rafael  
            0372: set_actor 0@ anim 19 wait_state_time 60000000 ms    
            0001: wait 11400 ms     
           
            0372: set_actor 0@ anim 0 wait_state_time 100 ms  
            00BC: text_highpriority 'sidpr52' time 5200 1  
            0247: request_model 264      
            0001: wait 5100 ms    
            
            00BC: text_highpriority 'sidpr53' time 15000 1
            038B: load_requested_models     
           
            01B1: give_player $PLAYER_CHAR weapon 6 ammo 1 // Load the weapon model before using this
  
            0004: $9104 = 1 // $ = int
            01B8: set_player $PLAYER_CHAR armed_weapon_to 6
            
        else
            00D6: if
            0038:   $9106 == 0 // $ == int
            then           
                03CF: load_wav 'bnk4_95' as 1
                :TELKA_8062
                0001: wait 0 ms 
                00D6: if
                03D0:   wav 1 loaded 
                004D: jump_if_false @TELKA_8062     
                03D1: play_wav 1 
                
                0372: set_actor 0@ anim 19 wait_state_time 60000000 ms
                00BC: text_highpriority 'sidpr63' time 2600 1 // rafael      
                0001: wait 2500 ms  
                                 
                0372: set_actor 0@ anim 0 wait_state_time 100 ms
                00BC: text_highpriority 'sidpr64' time 3900 1  
                0001: wait 3800 ms    
                
                0372: set_actor 0@ anim 19 wait_state_time 60000000 ms
                00BC: text_highpriority 'sidpr65' time 10500 1 // rafael  
                0001: wait 10400 ms   
                                    
                00BC: text_highpriority 'sidpr66' time 15000 1
                0004: $9106 = 1 // $ = int
            end 
        end
        
        
        040D: unload_wav 1   
        016A: fade 0 500 ms
        0001: wait 600 ms  
        02A3: enable_widescreen 0
        015A: restore_camera
        01B4: set_player $PLAYER_CHAR can_move 1 
        0372: set_actor 0@ anim 0 wait_state_time 100 ms
        016A: fade 1 500 ms 
        
        0001: wait 600 ms 
           
    end
end




00D6: if 
0118:   actor 0@ dead 
004D: jump_if_false @RAFAELI_227 
0001: wait 0 ms 
0002: jump @RAFAELI_323 

:RAFAELI_227
0001: wait 0 ms 
00D6: if or
02DF:   player $player_char aggressive 
051A:   actor 0@ damaged_by_actor $player_actor 
004D: jump_if_false @RAFAELI_262 
0002: jump @RAFAELI_323 

:RAFAELI_262
0001: wait 0 ms 
00D6: if and
0457:   player $player_char aiming_at_actor 0@ 
0039:   1@ == 0 // @ == int 
004D: jump_if_false @RAFAELI_423 
0001: wait 1700 ms 
00D6: if and
0457:   player $player_char aiming_at_actor 0@ 
0039:   1@ == 0 // @ == int 
004D: jump_if_false @RAFAELI_423 

:RAFAELI_323
0001: wait 50 ms 
00D6: if 
0039:   1@ == 0 // @ == int 
004D: jump_if_false @RAFAELI_423 
0001: wait 0 ms 
018D: 6@ = create_sound 0 at 96.5193 -1161.162 11.4733 
0004: $9104 = 3 // $ = int
010D: set_player $player_char wanted_level_to 3 
0006: 1@ = 1 // @ = int 
032B: 2@ = create_weapon_pickup 337 8 ammo 200 at 96.5193 -1161.162 10.4733 
0372: set_actor 0@ anim 35 wait_state_time 10000 ms 

:RAFAELI_423
0001: wait 50 ms 
00D6: if or
00F6:   player $player_char 0 113.11 -1155.99 11.27 radius 70.0 70.0 70.0 
00F7:   player $player_char sphere 0 near_point_in_car 113.11 -1155.99 11.27 radius 70.0 70.0 70.0 
004D: jump_if_false @RAFAELI_564 
0001: wait 50 ms 
00D6: if 
0102:   actor $player_actor stopped_near_point_on_foot 113.11 -1155.99 11.27 radius 1.0 1.0 1.0 sphere 0 
004D: jump_if_false @RAFAELI_200 

:RAFAELI_564
00D6: if 
0039:   1@ == 1 // @ == int 
004D: jump_if_false @RAFAELI_587 
018E: stop_sound 6@ 

:RAFAELI_587



00D6: if
0039:  3@ == 2 // @ == int
then   
    03BD: destroy_sphere 7@ 
end 



01C2: mark_actor_as_no_longer_needed 0@ 
0001: wait 5 ms 
0249: release_model #LI_MAN1 
0001: wait 5 ms 
009B: destroy_actor_instantly 0@ 
0001: wait 5 ms 
01B7: release_weather 
03AD: set_rubbish 1 
0001: wait 50 ms 
00D6: if or
00F6:   player $player_char 0 113.11 -1155.99 11.27 radius 70.0 70.0 70.0 
00F7:   player $player_char sphere 0 near_point_in_car 113.11 -1155.99 11.27 radius 70.0 70.0 70.0 
004D: jump_if_false @RAFAELI_17 
016A: fade 0 500 ms 
0001: wait 600 ms 
0055: put_player $player_char at 94.39 -1134.92 10.47 
0171: set_player $player_char z_angle_to 51.0 
0001: wait 700 ms 
016A: fade 1 500 ms 
0002: jump @RAFAELI_17 
